home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1997 February
/
EnigmA AMIGA RUN 15 (1997)(G.R. Edizioni)(IT)[!][issue 1997-02][PLANET CD V].iso
/
enigma
/
earcd
/
emula
/
arosdv19.lha
/
AROS
/
config
/
i386-emul
/
makefile
< prev
next >
Wrap
Makefile
|
1996-10-25
|
1KB
|
66 lines
# $Id: makefile,v 1.17 1996/10/25 14:31:58 aros Exp $
TOP=../..
include $(TOP)/config/make.cfg
SPECIAL_CFLAGS = -I $(TOP)/exec
FILES = \
supervisor \
switch \
dispatch \
disable \
enable \
forbid \
permit \
preparecontext \
special \
semaphoreglue \
exception \
cachecleare \
cacheclearu \
cachecontrol \
cachepostdma \
cachepredma \
setsr \
getcc \
superstate \
userstate \
stackswap \
runprocess
all: setup $(TOP)/include/aros/machine.h machine.i \
$(foreach f,$(FILES),$(OSGENDIR)/$(f).o)
setup :
@if [ ! -d $(OSGENDIR) ]; then $(MKDIR) $(OSGENDIR) ; else true ; fi
$(TOP)/include/aros/machine.h:
$(TOP)/scripts/makelinks . $(TOP)/include/aros machine.h
clean:
$(RM) $(TOP)/include/aros/machine.h
config:
@echo "Configuring for a x86 CPU..."
machine.i: geninc.c
$(CC) $(CFLAGS) -o geninc geninc.c
geninc > machine.i
$(OSGENDIR)/%.o: %.s machine.i
$(AS) $(AFLAGS) $< -c -o $@ 2>&1|tee $*.err
if test ! -s $*.err; then rm $*.err ; else true ; fi
$(OSGENDIR)/%.o: %.c
$(CC) $(CFLAGS) $< -c -o $@ 2>&1|tee $*.err
if test ! -s $*.err; then rm $*.err ; else true ; fi
$(OSGENDIR)/%.d: %.c $(TOP)/include/aros/machine.h
@if [ ! -d $(OSGENDIR) ]; then $(MKDIR) $(OSGENDIR) ; else true ; fi
@$(RM) $@
@touch $@
$(MKDEPEND) -p$(OSGENDIR)/
include $(OSGENDIR)/geninc.d